/**
 * Project Name:kany-utils
 * File Name:BaseEntity.java
 * Package Name:me.kany.utils.model.pageinfo
 * Date:2016年5月10日下午5:18:30
 * Copyright (c) 2016, Jason.Wang All Rights Reserved.
 *
*/

package me.kany.utils.model.pageinfo;

import javax.persistence.Transient;

/**
 * ClassName:BaseEntity <br/>
 * Function: 主要用来处理对象的分页数据. <br/>
 * Date: 2016年5月10日 下午5:18:30 <br/>
 * 
 * @author Jason.Wang
 * @version
 * @since JDK 1.7
 * @see
 */
public class BaseEntity {
	@Transient
	private int page = 1;
	@Transient
	private int rows = 10;

	/**
	 * page.
	 *
	 * @return the page
	 * @since JDK 1.7
	 */
	public int getPage() {
		return page;
	}

	/**
	 * page.
	 *
	 * @param page
	 *            the page to set
	 * @since JDK 1.7
	 */
	public void setPage(int page) {
		this.page = page;
	}

	/**
	 * rows.
	 *
	 * @return the rows
	 * @since JDK 1.7
	 */
	public int getRows() {
		return rows;
	}

	/**
	 * rows.
	 *
	 * @param rows
	 *            the rows to set
	 * @since JDK 1.7
	 */
	public void setRows(int rows) {
		this.rows = rows;
	}

}
